import request from "@/utils/request";

export default {
    // 获取课程列表 条件查询带份也
    getPageCourseList(page, limit, searchObj) {
        return request({
            url: `/serviceedu/course/getfrontCourseList/${page}/${limit}`,

            method: "post",

            data: searchObj
        });
    },

    // 查询所有分类的
    getAllSubjust() {
        return request({
            url: `/serviceedu/subject/getAllSubjest`,

            method: "get"
        });
    },
    //课程详情方法
    getCoureInfo(id) {
        return request({
            url: `/serviceedu/course/getFrontCourseInfo/${id}`,

            method: "get"
        });
    }
};